﻿using System.ComponentModel.DataAnnotations;

namespace Management.Domain
{
    /// <summary>
    /// 生产工单
    /// </summary>
    public class ProductionOrder
    {
        /// <summary>
        /// 生产工单ID
        /// </summary>
        [Key]
        public int Productionorderid { get; set; }

        /// <summary>
        /// 工单编号
        /// </summary>
        public string Workordernumber { get; set; }

        /// <summary>
        /// 工单名称
        /// </summary>
        public string Workordername { get; set; }

        /// <summary>
        /// 工单进度
        /// </summary>
        public string Workorderprogress { get; set; }

        /// <summary>
        /// 关联计划
        /// </summary>
        public string Relatedplans { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string Productname { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string Productnumber { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specificationandmodel { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        public string Producttype { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Productionorderunit { get; set; }

        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime Requirementdate { get; set; }

        /// <summary>
        /// 计划数量
        /// </summary>
        public float Plannedproduction { get; set; }

        /// <summary>
        /// 实际生产数量
        /// </summary>
        public float Actualproductionquantity { get; set; }

        /// <summary>
        /// 计划开工时间
        /// </summary>
        public DateTime Scheduledstarttime { get; set; }

        /// <summary>
        /// 计划完工时间
        /// </summary>
        public DateTime Plannedendtime { get; set; }

        /// <summary>
        /// 实际开工时间
        /// </summary>
        public DateTime Actualstarttime { get; set; }

        /// <summary>
        /// 实际完工时间
        /// </summary>
        public DateTime Actualendtime { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Productionorderstate { get; set; }
    }
}
